<template>
	<div>
		<topbar :title="$store.state.isEditAddress ? '编辑地址' : '新增地址'" />
		<addressset-content />
	</div>
</template>

<script>
	import topbar from '@/components/topbar.vue'
	import addresssetContent from './addressset-content.vue'
	export default {
		name: 'AddressSet',
		components: {
			topbar,
			addresssetContent
		},
		activated() {
			let aid = this.$route.query.aid
			if (aid) 
				this.$store.dispatch('set_is_edit', true)
			else
				this.$store.dispatch('set_is_edit', false)
		}
	}
</script>

<style scoped>

</style>